Load distributing apparatus and load distributing method

ABSTRACT

A load distributing apparatus is connected to a plurality of routers carrying out a transfer process of multicast data. The load distributing apparatus includes a network interface unit that receives a packet via a network, a packet identifying unit that identifies the packet received as a join message or a prune message, a path-sorting-rule storing unit that stores a path-sorting rule for sorting the packet to the routers, and a packet sorting unit that sorts the packet that is identified by the packet identifying unit to the routers based on the path-sorting rule stored in the path-sorting-rule storing unit.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a load distributing apparatus and a load distributing method to carry out a load distribution for a transfer process of multicast data, and more particularly, to a load distributing apparatus and a load distributing method that can realize the load distribution for the multicast data without placing a load to a router, and carry out a high-speed transfer start operation.

2. Description of the Related Art

When it is required to send the same information to multiple terminals at a time in a network employing transmission control protocol/Internet protocol, a commonly used method is a multicast. For example, the multicast is used for video distribution in the Internet.

In a communication based on a unicast, when sending the same data to a plurality of terminals, it is necessary to create packets having the same contents as many as the number of the terminals, and send the packets to the terminals by specifying an internet protocol (IP) address for each of the terminals. However, in a communication based on the multicast, it is possible to send a single packet to a plurality of terminals by specifying an address that is allocated as a multicast address. For this reason, it is possible to reduce a load on the network.

When the communication based on the multicast is carried out across a plurality of networks, it is necessary to carry out a route control using a protocol referred to as a multicast routing protocol. A typical multicast routing protocol is a protocol independent multicast sparse mode (PIM-SM) that can build a communication route referred to as a multicast tree efficiently using a Join/Prune message.

A router (relay apparatus) employing the PIM-SM notifies a neighboring network router of its presence by sending a hello message periodically. The hello message also takes a roll of preventing a redundant transfer of multicast data. When a plurality of router is connected to a local area network (LAN), if each of the routers carries out a relay of the multicast data, there is a possibility that a number of the same packets are sent on the LAN. To prevent this from happening, each of the routers receives the hello message, and when a presence of other router on the same LAN is confirmed, only a router having the biggest IP address becomes a designated router (DR) that takes a relay of the multicast data.

In this manner, it is possible to prevent a redundant transfer of the multicast data by having the DR only carry out the relay of the multicast data. However, when it is necessary to process a large amount of multicast data, a load on the DR becomes extremely heavy. To cope with this problem, Japanese Patent Application Laid-Open Publication 2003-23444 discloses a technology that operates a plurality, of router as a single router in a virtual manner using a virtual router redundancy protocol (VRRP), and extends the routers so that the routers exchange a message for exclusively setting a multicast address for a transfer process. By employing this technology, each of the routers carries out a transfer process of data corresponding to the multicast address allocated to it, and as a result, it is possible to realize a load distribution.

However, when the technology disclosed in the above literature, each of the routers has to operate the VRRP in addition to a normal protocol for the multicast, such as the PIM-SM, which causes an additional load on the router. In addition, because an allocation of the multicast address for a transfer is determined by exchanging a message between the routers, the exchange of the message becomes an overhead. As a result, a high-speed transfer start operation is not possible.

SUMMARY OF THE INVENTION

It is an object of the present invention to solve at least the above problems in the conventional technology.

A load distributing apparatus according to one aspect of the present, which is connected to a plurality of routers carrying out a transfer process of multicast data, includes a network interface unit that receives a packet via a network; a packet identifying unit that identifies the packet received as a join message or a prune message; a path-sorting-rule storing unit that stores a path-sorting rule for sorting the packet to the routers; and a packet sorting unit that sorts the packet that is identified by the packet identifying unit to the routers based on the path-sorting rule stored in the path-sorting-rule storing unit.

A method according to another aspect of the present invention, which is for controlling a plurality of routers carrying out a transfer process of multicast data, includes receiving a packet via a network; identifying the packet received as a join message or a prune message; and sorting the packet that is identified by the packet identifying unit to the routers based on a path-sorting rule stored in a path-sorting-rule storing unit.

The above and other objects, features, advantages and technical and industrial significance of this invention will be better understood by reading the following detailed description of presently preferred embodiments of the invention, when considered in connection with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic diagram for explaining a principle of a load distributing method according to a first embodiment of the present invention;

FIG. 2 is a functional block diagram of a load distributing apparatus according to the first embodiment;

FIG. 3 is a functional block diagram of a packet identifying unit of the load distributing apparatus according to the first embodiment;

FIG. 4 is a table for illustrating an example of an identification rule for the packet identifying unit shown in FIG. 3;

FIG. 5 is a functional block diagram of a join-prune-packet sorting unit of the load distributing apparatus according to the first embodiment;

FIG. 6 is a table for illustrating an example of a path sorting rule for the join-prune-packet sorting unit shown in FIG. 5;

FIG. 7 is a flowchart of a process procedure for the load distributing apparatus according to the first embodiment;

FIG. 8 is a flowchart of a process procedure for determining a transfer destination according to the first embodiment;

FIG. 9 is a functional block diagram of a join-prune-packet sorting unit of a load distributing apparatus according to a second embodiment of the present invention;

FIG. 10 is a table for illustrating an example of a path sorting rule for the join-prune-packet sorting unit shown in FIG. 9;

FIG. 11 is a flowchart of a process procedure for determining a transfer destination according to the second embodiment;

FIG. 12 is a functional block diagram of a join-prune-packet sorting unit of a load distributing apparatus according to a third embodiment of the present invention;

FIG. 13 is a table for illustrating an example of a path sorting rule for the join-prune-packet sorting unit shown in FIG. 12;

FIG. 14 is a table for illustrating an example of entry number information according to a path;

FIGS. 15 and 16 are flowcharts of a process procedure for determining a transfer destination according to the third embodiment;

FIG. 17 is a functional block diagram of a join-prune-packet sorting unit of a load distributing apparatus according to a fourth embodiment of the present invention;

FIG. 18 is a table for illustrating an example of a path sorting rule for the join-prune-packet sorting unit shown in FIG. 17;

FIG. 19 is a flowchart of a process procedure for determining a transfer destination according to the fourth embodiment;

FIG. 20 is a functional block diagram of a load distributing apparatus according to a fifth embodiment of the present invention;

FIG. 21 is a functional block diagram of a failure detecting unit of the load distributing apparatus according to the fifth embodiment;

FIG. 22 is a flowchart of a process procedure for a case in which a message loss is detected;

FIG. 23 is a functional block diagram of a load distributing apparatus according to a sixth embodiment of the present invention;

FIG. 24 is a table for illustrating an example of a path sorting rule for the join-prune-packet sorting unit of the load distributing apparatus according to the sixth embodiment;

FIG. 25 is a schematic diagram for illustrating an example of a network configuration for carrying out a multicast;

FIG. 26 is a sequence diagram for a communication procedure for carrying out a multicast; and

FIG. 27 is a schematic diagram for explaining an operation of a network including a plurality of routers.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Exemplary embodiments of the present invention will be explained in detail below with reference to the accompanying drawings.

FIG. 25 is a schematic diagram for illustrating an example of a network configuration for carrying out a multicast. A server 1000 that transmits data is connected to a network 100 via a router 2001. Terminals 3001 to 3003 that receive the data are connected to a LAN 200. The LAN 200 is connected to the Internet 100 via a router 2002.

To transmit multicast data from the server 1000 to the terminals 3001 to 3003, it is necessary to carry out a predetermined procedure both between the router 2001 and the router 2002 and between the router 2002 and the terminals 3001 to 3003. Following is an explanation for a procedure between the router 2002 and the terminals 3001 to 3003. FIG. 26 is a sequence diagram for a communication procedure for carrying out a multicast.

The router 2002 carries out a multicast of a join-inquiring message to inquire whether there is a terminal to receive a multicast on the LAN 200. Terminals that receive data of the same multicast address are referred to as a multicast group. However, the join-inquiring message is transmitted at a constant time interval, without designating a specific multicast group. The terminal 3001 that receives the join-inquiring message carries out a multicast of a join message with the multicast address received as a destination. Then, the router 2002 that receives the join message from the terminal 3001 starts a transfer of data of the multicast address designated.

When ending a reception of the multicast, the terminal 3001 carries out a multicast of a prune message. To confirm whether a multicast group that receives data of the multicast address designated in the prune message is remained on the LAN 200, the router 2002 that receives the prune message carries out a multicast of a join-inquiring message in which the multicast group is designated. Then, if there is no response of the join message for a predetermined time, a transmission of the data of the multicast address is stopped.

Let us consider a case in which a plurality of routers is connected to the LAN 200. If each of the routers carries out a relay of the multicast, there is a possibility that the same data is transmitted on the LAN 200 in a redundant manner. To avoid this kind of happening, when a plurality of routers is connected to a LAN, only one router is allowed to carry out a relay of the multicast. FIG. 27 is a schematic diagram for explaining an operation of a network including a plurality of routers.

The figure shows an example in which the router 2002 and a router 2003 are connected to the LAN 200. Each of the router 2002 and the router 2003 carries out a multicast of a hello message at a constant time interval. Then, a router having the biggest IP address (in the example shown in FIG. 27, the router 2002 is assumed to have the biggest IP address) becomes a DR that takes the relay of the multicast data.

In this manner, by making only one router become the DR and take the relay of the multicast data, it is possible to avoid a redundant transmission of the same data on the LAN 200. However, when there is a need for relaying a large amount of multicast data, a load is centered on the router 2002 that became the DR, and a process capability of the router 2003 is not utilized effectively.

FIG. 1 is a schematic diagram for explaining a principle of a load distributing method according to a first embodiment of the present invention. As shown in the figure, in the load distributing method according to the first embodiment, a load distributing apparatus 4000 is arranged between the router 2002 and the router 2003, so that the load distributing apparatus 4000 is connected to the LAN 200.

The load distributing apparatus 4000 has a hello-message stop function and a join-prune-message sorting function. The hello-message stop function stops the hello message sent by the router 2002 and the router 2003, so that other router does not receive the hello message. By stopping the hello message, it is possible to prevent only a single router from becoming the DR, and as a result, both the router 2002 and the router 2003 can carry out the transfer process of the multicast data.

The join-prune-message sorting function sorts a join message and a prune message sent by the terminals 3001 to 3003 to any one of the router 2002 and the router 2003 based on a predetermined rule. By sorting the join message and the prune message, a distribution of the multicast address to be transferred is determined, and as a result, a load distribution for the transfer process can be realized. Because the router does not need to carry out any particular process for realizing the load distribution, the router does not take an extra burden.

In addition, because it is not necessary to exchange messages between the routers for the load distribution, it is possible to carry out a high-speed operation. Furthermore, the router 2002 and the router 2003 do not receive a join message and a prune message that are not related thereto because the load distributing apparatus 4000 sorts the join message and the prune message. Therefore, it is possible to reduce the load on the routers.

For example, when the terminal 3001 transmits a join message for receiving data of a multicast address A, and the join-prune-message sorting function sorts the message to the router 2002, the router 2002 takes a role of transferring the data of the multicast address A. In this case, even if the terminal 3002 or the terminal 3003 sends a join message for receiving the data of the multicast address A, the message is sorted to the router 2002 based on the same rule, and as a result, the router 2003 does not transfer the same multicast data on the LAN 200.

In addition, when any one of the terminals 3001 to 3003 sends a prune message to stop a reception of the data of the multicast address A, the message is sorted to the router 2002 based on the same rule, and the prune message is processed appropriately. In this manner, the sorting of the join message and the prune message is exclusively carried out in the load distributing apparatus 4000, and it is not necessary to provide any particular extension to each of the routers.

FIG. 2 is a functional block diagram of a load distributing apparatus according to the first embodiment. As shown in the figure, a load distributing apparatus 4000 a includes a network interface unit 4100 a, a packet identifying unit 4200 a, a hello-message discarding unit 4300 a, a join-prune-packet sorting unit 4400 a, and a packet transferring unit 4500 a.

The network interface unit 4100 a is an interface unit for carrying out an exchange of packets via a network. The network interface unit 4100 a includes a plurality of ports for connecting to the routers and one or more ports for connecting to the LAN. The ports for connecting to the routers does not necessarily have to be a plurality of numbers physically, but can be divided into a plurality of ports virtually by a virtual LAN (VLAN).

The packet identifying unit 4200 a identifies a type of the packet received by the network interface unit 4100 a, and delivers the packet to a corresponding processing unit based on the type of the packet identified. When the packet received is identified as a hello message, the packet is delivered to the hello-message discarding unit 4300 a, when the packet received is identified as a join message or a prune message, the packet is delivered to the join-prune-packet sorting unit 4400 a, and when the packet received is identified as other type of packet, the packet is delivered to the packet transferring unit 4500 a.

FIG. 3 is a functional block diagram of the packet identifying unit 4200 a of the load distributing apparatus according to the first embodiment. As shown in the figure, the packet identifying unit 4200 a includes a header extracting unit 4210 a, an-identification-rule searching unit 4220 a, and an identification-rule storing unit 4230 a. The header extracting unit 4210 a is a processing unit that extracts information necessary for identifying the type of the packet from a header part of the packet. The identification-rule searching unit 4220 a searches for an identification rule stored in the identification-rule storing unit 4230 a by using the information extracted by the header extracting unit 4210 a as a key, and determines a sorting destination based on the identification rule searched.

The identification-rule storing unit 4230 a stores the identification rule for identifying and sorting the packet received. FIG. 4 is a table for illustrating an example of the identification rule for the packet identifying unit 4200 a shown in FIG. 3. As shown in the figure, an identification of the type of the packet is carried out based on a destination media-access-control (MAC) address, a destination IP address, and a value of a TYPE field of a payload unit. For example, a packet having the destination MAC address of 01-00-5E-00-00-02, the destination IP address of 224.0.0.2, and the value of the TYPE field of the payload unit of 0×17 is identified as a type of the prune message, and is sorted to the join-prune-packet sorting unit 4400 a.

The hello-message discarding unit 4300 a is a processing unit that discards the hello message without transferring it. As a result of the hello-message discarding unit 4300 a discarding the hello message, the hello message is not received by the routers, and it is possible to prevent only a single router from becoming the DR. Therefore, all of the routers become ready to carry out a transfer of the multicast data.

The join-prune-packet sorting unit 4400 a is a processing unit that determines a destination router to sort the join message and the prune message based on a predetermined rule. There are many kinds of methods to sort the join message and the prune message. However, according to the present embodiment, the join message and the prune message are sorted based on a static table in which a sorting destination is defined for each of the multicast addresses.

FIG. 5 is a functional block diagram of the join-prune-packet sorting unit 4400 a. The join-prune-packet sorting unit 4400 a includes a header extracting unit 4410 a, a path-sorting-rule searching unit 4420 a, and a path-sorting-rule storing unit 4430 a. The header extracting unit 4410 a is a processing unit that extracts information necessary for determining the sorting destination from a header part of the packet. The path-sorting-rule searching unit 4420 a searches for a path-sorting rule stored in the path-sorting-rule storing unit 4430 a by using the information extracted by the header extracting unit 4410 a as a key, and determines the sorting destination based on the path-sorting rule searched.

The path-sorting-rule storing unit 4430 a stores the path-sorting rule for sorting the packet received. FIG. 6 is a table for illustrating an example of the path sorting rule for the join-prune-packet sorting unit 4400 a shown in FIG. 5. The path-sorting rule holds a pair of the multicast address and an output path of a packet corresponding to the multicast address. For example, a packet having a multicast address A is output from a port 1 of the network interface unit 4100 a.

The path-sorting rule is a static one that is preset by an administrator and the like. In addition, the multicast address can be an IP address or a MAC address. Furthermore, the output path can be a physical port or a logical port of the VLAN and the like.

The packet transferring unit 4500 a is a processing that transfers the packet delivered from the packet identifying unit 4200 a and the join-prune-packet sorting unit 4400 a, via the network interface unit 4100 a. The packet delivered from the join-prune-packet sorting unit 4400 a is transferred to a port that is designated by the join-prune-packet sorting unit 4400 a only.

FIG. 7 is a flowchart of a process procedure for the load distributing apparatus 4000 a according to the first embodiment. As shown in the figure, the load distributing apparatus 4000 a receives a packet (Step S1001), and identifies a type of the packet received at the packet identifying unit 4200 a (Step S1002). When the packet is a hello message (YES at Step S 1003), the load distributing apparatus 4000 a discards the packet at the hello-message discarding unit 4300 a (Step S1004).

When the packet is not a hello message (NO at Step S1003), but is a join message or a prune message (YES at Step S1005), the load distributing apparatus 4000 a carries out a process for determining a transfer destination to determine a destination router at the join-prune-packet sorting unit 4400 a (Step S1006), and carries out a transfer of the packet at the packet transferring unit 4500 a (Step S1007). When the packet is neither a join message nor a prune message (NO at Step S 1005), the load distributing apparatus 4000 a carries out a transfer of the packet at the packet transferring unit 4500 a as it is (Step S1007).

FIG. 8 is a flowchart of a process procedure for determining a transfer destination according to the first embodiment. As shown in the figure, the load distributing apparatus 4000 a acquires a multicast address from the packet (Step S1101), searches for a path-sorting rule stored in the path-sorting-rule storing unit 4430 a, acquires information on a transfer destination, and designates the transfer destination in the packet transferring unit 4500 a based on the information acquired (Step S1102).

As described above, according to the first embodiment, the load distributing apparatus 4000 a is provided between the routers, and the hello-message discarding unit 4300 a discards the hello message. Therefore, when a plurality of routers is connected to the LAN, it is possible to make all of the routers ready to carry out a transfer of the multicast data.

Furthermore, according to the first embodiment, it is configured that the join message and the prune message from a terminal are sorted to the routers based on the path-sorting rule in which the transfer destination is defined for each of the multicast addresses. Therefore, it is possible to realize a load distribution of the-transfer process without placing a burden on each of the routers, and to achieve a high-speed transfer start operation.

Although a stop of the hello message is carried out in the hello-message discarding unit 4300 a according to the present embodiment, it is also possible to stop the hello message by using a filtering of a layer2 switch. In this case, the load distributing apparatus 4000 a does not need to include the hello-message discarding unit 4300 a.

According to the first embodiment, the path-sorting rule is set based on the multicast address. However, in this case, because the path-sorting rule has to be set for all of the multicast addresses that have a possibility of being processed, there is a heavy burden on an administrator who sets the path-sorting rule. In addition, it is not possible to carry out a process for a join message and a prune message of a multicast address that is not set in the path-sorting rule. For this reason, a second embodiment of the present invention deals with a case in which the multicast address operation processed, and a sorting is carried out based on a result of the operation.

In a load distributing apparatus according to the second embodiment, the join-prune-packet sorting unit 4400 a of the load distributing apparatus 4000 a according to the first embodiment is replaced by a join-prune-packet sorting unit 4400 b. FIG. 9 is a functional block diagram of the join-prune-packet sorting unit 4400 b of the load distributing apparatus according to the second embodiment.

The join-prune-packet sorting unit 4400 b includes a header extracting unit 4410 b, a path-sorting-rule searching unit 4420 b, a path-sorting-rule storing unit 4430 b, and a header-information operating unit 4440 b. The header extracting unit 4410 b is a processing unit that extracts address information on the multicast address and the like from a header part of the packet. The header-information operating unit 4440 b is a processing unit that converts the information extracted by the header extracting unit 4410 b into a numerical value by a hash calculation and the like.

The-path-sorting-rule searching unit 4420 b is a processing unit that searches for a path-sorting rule stored in the path-sorting-rule storing unit 4430 b based on the numerical value converted by the header-information operating unit 4440 b, and determines a sorting destination.

The path-sorting-rule storing unit 4430 b stores the path-sorting rule for sorting the packet received. FIG. 10 is a table for illustrating an example of the path sorting rule for the join-prune-packet sorting unit 4400 b shown in FIG. 9. The path-sorting rule holds a pair of a calculated value of the header-information operating unit 4400 b and an output path of a packet corresponding to the calculated value. For example, a packet having the calculated value of zero is output from a port 1.

The path-sorting rule uses the multicast address by converting it into a numerical value, instead of using it directly. Therefore, it is not necessary to set a path-sorting rule for each of the multicast addresses, by taking an appropriate conversion into the numerical value.

A process procedure of the load distributing apparatus according to the second embodiment is same as the process procedure of the load distributing apparatus according to the first embodiment except for the transfer-destination determining process. FIG. 11 is a flowchart of a process procedure for determining a transfer destination according to the second embodiment. The join-prune-packet sorting unit 4400 b acquires a multicast address from a packet received (Step S2001), and carries out an operation process of the multicast address acquired (Step S 2002). Then, the join-prune-packet sorting unit 4400 b searches for a path-sorting rule stored in the path-sorting-rule storing unit 4430 b by using calculated value obtained from the operation process as a key, acquires information on a transfer destination, and designates the transfer destination based on the information acquired (Step S2003).

As described above, according to the second embodiment, it is configured that a multicast address included in a join message and a prune message sent from a terminal is converted into a numerical value, and a sorting destination is determined based on the numerical value converted. Therefore, it is possible to realize a sorting process without setting all of the multicast addresses in a path-sorting rule.

According to the first embodiment, a join message and a prune message are sorted based on a path-sorting rule that is defined in advance. However, a path sorting based on a predefined rule may cause the sorting destination to be biased on a specific router, resulting in an inappropriate load distribution. For this reason, a third embodiment of the present invention deals with a case in which the path-sorting rule is dynamically set, so that the load distribution is carried out evenly.

A configuration of a load distributing apparatus according to the second embodiment is the one in which the join-prune-packet sorting unit 4400 a of the load distributing apparatus 4000 a according to the first embodiment is replaced by a join-prune-packet sorting unit 4400 c. FIG. 12 is a functional block diagram of the join-prune-packet sorting unit 4400 c of the load distributing apparatus according to the third embodiment.

As shown in the figure, the join-prune-packet sorting unit 4400 c includes a header extracting unit 4410 c, a join-message processing unit-4421 c, a prune-message processing unit 4422 c, a timer 4423 c, a path-sorting-rule storing unit 4430 c, a number-of-entries-per-path sorting unit 4431 c, and a type determining unit 4450 c. The header extracting unit 4410 c is a processing unit that extracts information for determining a type of a packet from a header part of the packet.

The type determining unit 4450 c determines whether the packet received is a join message or a prune message based on the information extracted by the header extracting unit 4410 c, and delivers the packet to a corresponding processing unit based on the type of the packet determined. When the packet is determined as the join message, the type determining unit 4450 c delivers the packet to the join-message processing unit 4421 c, and when the packet is determined as the prune message, the type determining unit 4450 c delivers the packet to the prune-message processing unit 4422 c. The determination of the type of the packet can be carried out based on the same rule as the identifying rule shown in FIG. 4.

The join-message processing unit 4421 c determines a sorting destination for the packet delivered from the type determining unit 4450 c based on a path-sorting rule stored in the path-sorting-rule storing unit 4430 c. When the path-sorting rule for sorting the packet is not stored in the path-sorting-rule storing unit 4430 c, the join-message processing unit 4421 c determines a most empty path based on information on the number of entries per path stored in the number-of-entries-per-path sorting unit 4431 c, adds a path-sorting rule for sorting the packet to the most empty path in the path-sorting-rule storing unit 4430 c, and updates the information on the number of entries per path stored in the number-of-entries-per-path sorting unit 4431 c.

In this manner, the join-message processing unit 4421 c dynamically adds the path-sorting rule by determining a load condition, and as a result, a load distribution of each of the routers is evenly carried out. In addition, because the addition of the path-sorting rule does not need a human operation, a load on the administrator is also reduced.

The prune-message processing unit 4422 c is a processing unit that determines a sorting destination for the packet delivered from the type determining unit 4450 c based on the path-sorting rule stored in the path-sorting-rule storing unit 4430 c. Furthermore, the prune-message processing unit 4422 c sets a flag indicating that a prune message is received in the path-sorting rule used for sorting the packet. The flag is cleared when the join-message processing unit 4421 c carries out a sorting of the join message using the path-sorting rule. When the flag is not cleared even after a predetermined time has passed, the prune-message processing unit 4422 c deletes the path-sorting rule by taking the path-sorting rule as an unused one, and updates the information on the number of entries per path stored in the number-of-entries-per-path sorting unit 4431 c.

In this manner, the prune-message processing unit 4422 c deletes the unused path-sorting rule to keep an effective load condition in the information on the number of entries per path, and as a result, a load distribution of each of the routers is evenly kept.

The timer 4423 c is used for detecting that the flag set in the path-sorting rule by the prune-message processing unit 4422 c is not cleared for the predetermined time. The path-sorting-rule storing unit 4430 c is for storing the path-sorting rule for sorting the packet. FIG. 13 is a table for illustrating an example of the path sorting rule for the join-prune-packet sorting unit 4400 c shown in FIG. 12. As shown in the figure, the path-sorting rule according to the present embodiment holds a pair of a multicast address and an output path for a packet having the multicast address, as well as a flag indicating that a prune message is received.

The number-of-entries-per-path sorting unit 4431 c stores the information on the number of entries per path that indicates a load condition of each of the routers. FIG. 14 is a table for illustrating an example of the information on the number of entries per path. As shown in the figure, the information on the number of entries per path holds a value obtained by collecting the number of entries of the path-sorting rule for each of the output ports. For-example, the data on the first line indicates that there are two entries of rules that sort the packet to a port 1. This means that there are two multicast addresses that are sorted to the router corresponding to the port 1.

A process procedure of the load distributing apparatus according to the third embodiment is same as the process procedure of the load distributing apparatus according to the first embodiment except for the transfer-destination determining process. FIGS. 15 and 16 are flowcharts of a process procedure for determining a transfer destination according to the third embodiment. As shown in the figure, the join-prune-packet sorting unit 4400 c determines a type of a packet at the type determining unit 4450 c (Step S3001).

When the message is a join message (YES at Step S3002), the join-prune-packet sorting unit 4400 c searches for a path-sorting rule at the join-message processing unit 4421 c, and acquires information on a transfer destination (Step S3003). When an appropriate path-sorting rule for the packet is acquired (YES at Step S3004), the join-prune-packet sorting unit 4400 c adopts a transfer destination defined in the path-sorting rule acquired, and sets a flag of the path-sorting rule to zero.

When the appropriate path-sorting rule for the packet is not acquired (NO at Step S3004), the join-prune-packet sorting unit 4400 c searches for the information on the number of entries per path, acquires a path having the smallest number of entries (Step S3006), and adopts the path acquired as the transfer destination (Step S3007). Then, the join-prune-packet sorting unit 4400 c adds a rule for carrying out a sorting to the path acquired in the path-sorting rule (Step S3008), and increments the number of the entries of the path in the information on the number of entries per path by one (Step S3009).

On the other hand, when the packet is a prune message as a result of Step S3001 (NO at Step S3002), the join-prune-packet sorting unit 4400 c searches for a path-sorting rule at the prune-message processing unit 4422 c, and adopts a transfer destination defined in the path-sorting rule searched (Step S3101). Then, the join-prune-packet sorting unit 4400 c sets a flag of the rule to one (Step S3102), and resets a timer to start a clock (Step S3103).

When the timer times out, and the flag is still set to one (YES at Step S3201), the join-prune-packet sorting unit 4400 c deletes the rule from the path-sorting rule (Step S3202), and decrements the number of entries of an output path of the rule by one (Step S3203). If the flag is reset to zero when the timer times out (NO at Step S3201), the join-prune-packet sorting unit 4400 c does not carry out any particular process.

As described above, according to the third embodiment, it is configured that a path-sorting rule is dynamically set by considering an amount of sorting. Therefore, it is possible to realize an even distribution of a load on a router.

According to the third embodiment, an even load distribution is achieved by making up the number of entries of a path-sorting rule, i.e., the number of multicast addresses that take the sorting. However, when considering the entire network, there is a case in which this method is not appropriate. When there is a plurality of paths from a server that transmits multicast data, it is desirable to let a router connected to a path that becomes a short cut or a router connected to a path having the broadest bandwidth transmit the data.

The router connected to a path that becomes a short cut or the router connected to a path having the broadest bandwidth can be acquired by, for example, referring to information on routing of a unicast. Because it is necessary to refer to the information on routing of a unicast based on an IP address of the server, it would be better refer to the path-sorting rule based on the IP address of the server, too. A fourth embodiment of the present invention deals with a case in which the path-sorting rule is determined based on the IP address of the server.

A configuration of a load distributing apparatus according to the fourth embodiment is the one in which the join-prune-packet sorting unit 4400 a of the load distributing apparatus 4000 a according to the first embodiment is replaced by a join-prune-packet sorting unit 4400 d. FIG. 17 is a functional block diagram of the join-prune-packet sorting unit 4400 d of the load distributing apparatus according to the fourth embodiment.

As shown in the figure, the join-prune-packet sorting unit 4400 d includes a source-address extracting unit 4410 d, a path-sorting-rule searching unit 4420 d, and a path-sorting-rule storing unit 4430 d. The source-address extracting unit 4410 d is a processing unit that extracts an IP address of a server that is a transmission source of multicast data from a header part of a packet.

The path-sorting-rule searching unit 4420 d searches for a path-sorting rule stored in the path-sorting-rule storing unit 4430 d based on the IP address of server acquired by the source-address extracting unit 4410 d as a key, and determines a sorting destination.

The path-sorting-rule storing unit 4430 d stores the path-sorting rule for sorting the packet. FIG. 18 is a table for illustrating an example of the path sorting rule for the join-prune-packet sorting unit 4400 d shown in FIG. 17. As shown in the figure, the path-sorting rule according to the present embodiment holds a pair of the IP address of the server that is the transmission source and an output path. These pieces of information can be automatically created from routing information, or can be set by the administrator. Furthermore, the path-sorting rule can hold an address and a subnet mask of a network to which the server that is the transmission source belongs, instead of the IP address of the server that is the transmission source.

A process procedure of the load distributing apparatus according to the fourth embodiment is same as the process procedure of the load distributing apparatus according to the first embodiment except for the transfer-destination determining process. FIG. 19 is a flowchart of a process procedure for determining a transfer destination according to the fourth embodiment. As shown in the figure, the join-prune-packet sorting unit 4400 d acquires an IP address of a server that is a transmission source of data from a packet received (Step S4001), and searches for a path-sorting rule stored in the path-sorting-rule storing unit 4430 d based on the IP address of the server as a key, acquires information on a transfer destination, and designates the transfer destination based on the information acquired (Step S4002).

As described above, according to the fourth embodiment, it is configured that a path-sorting rule is set based on an IP address of a transmission source of data. Therefore, it is possible to transfer multicast data via a most appropriate path by using information on routing a unicast in conjunction with the path-sorting rule.

When a plurality of routers is connected to a LAN, it is possible not only to carry out a load distribution to the routers, but also to provide a redundancy so that another router takes a transfer of multicast data when a failure occurs in a part of the routers or in a part of the paths. A fifth embodiment of the present invention deals with a case in which a redundancy against a failure is realized. A method of implementing the load distribution can be any one of methods according to the first to fourth embodiments.

FIG. 20 is a functional block diagram of a load distributing apparatus according to the fifth embodiment. As shown in the figure, the load distributing apparatus 4000 e includes a network interface unit 4100 e, a packet identifying unit 4200 e, a hello-message discarding unit 4300 e, a join-prune-packet sorting unit 4400 e, a packet transferring unit 4500 e, a failure detecting unit 4600 e, and a join-message creating unit 4700 e.

The network interface unit 4100 e is an interface unit for carrying out an exchange of packets via a network. The network interface unit 4100 e includes a plurality of ports for connecting to the routers and one or more ports for connecting to the LAN. The ports for connecting to the routers does not necessarily have to be a plurality of numbers physically, but can be divided into a plurality of ports virtually by a VLAN.

The packet identifying unit 4200 e identifies a type of the packet received by the network interface unit 4100 e, and delivers the packet to a corresponding processing unit based on the type of the packet identified. When the packet received is identified as a hello message, the packet is delivered to the hello-message discarding unit 4300 e, when the packet received is identified as a join message or a prune message, the packet is delivered to the join-prune-packet sorting unit 4400 e, and when the packet received is identified as other type of packet, the packet is delivered to the packet transferring unit 4500 e. In addition, when the packet received is identified as the hello message, the packet is also delivered to the failure detecting unit 4600 e.

The hello-message discarding unit 4300 e is a processing unit that discards the hello message without transferring it. The join-prune-packet sorting unit 4400 e is a processing unit that determines a destination router to sort the join message and the prune message based on a predetermined rule. Furthermore, when the failure detecting unit 4600 e detects a failure in one of the routers, the join-prune-packet sorting unit 4400 e updates a path-sorting rule in which the packet is supposed to be sorted to the router in which the failure is detected to change a setting such that the packet is sorted to other router. In addition, the join-prune-packet sorting unit 4400 e instructs the join-message creating unit 4700 e to transmit a join message to a router that becomes a new sorting destination.

In this manner, when a failure is detected, it is possible to realize a redundancy against the failure by updating a path-sorting rule to change a sorting destination for a join message from a router having the failure to which the join message is sorted to other router. Furthermore, because the join-message creating unit 4700 e transmits the join message to a router that becomes a new sorting destination, a transfer of multicast data is resumed in an early stage.

The failure detecting unit 4600 e is a processing unit that monitors a hello message transmitted from a router, when there is a router from which a hello message is not transmitted for-a predetermined time, determines that there is a failure in the router, and notifies an occurrence of a failure to the join-prune-packet sorting unit 4400 e. FIG. 21 is a functional block diagram of the failure detecting unit 4600 e of the load distributing apparatus according to the fifth embodiment. As shown in the figure, the failure detecting unit 4600 e includes a message-stop detecting unit 4610 e and a timer 4620 e.

When a hello message is received, the message-stop detecting unit 4610 e starts a timer corresponding to a port that received the hello message. Then, when a hello message is not received at the port for a predetermined time, and when the timer times out, determines that there is a failure in a router that is connected to the port, and notifies an occurrence of a failure to the join-prune-packet sorting unit 4400 e.

The join-message creating unit 4700 e is a processing unit that creates a join message to be transmitted to a router that is designated by the join-prune-packet sorting unit 4400 e, and makes a request for a transfer of the join message to the packet transferring unit 4500 e. The packet transferring unit 4500 e transfers a packet delivered from the packet identifying unit 4200 e, the join-prune-packet sorting unit 4400 e, and the join-message creating unit 4700 e, via the network interface unit 4100 e.

Following is an explanation for a process procedure for the load distributing apparatus 4000 e. A process at a time of a normal operation is virtually the same as the processes according to the first to fourth embodiments, a process procedure at a time of an abnormal operation will be explained here. FIG. 22 is a flowchart of a process procedure for a case in which a message-stop is detected.

When a hello message is received (Step S5001), the failure detecting unit 4600 e acquires a port that received the hello message (Step S5002), and starts a timer corresponding to the port (Step S5003). Then, when a hello message is not received at the port for a predetermined time, and when the timer times out (YES at Step S5004), the failure detecting unit 4600 e notifies the join-prune-packet sorting unit 4400 e that a message-stop is occurred (Step S5005).

The join-prune-packet sorting unit 4400 e that receives a notification of an occurrence of a failure updates a path-sorting rule, and replaces a port in which the message-stop is detected by other port (Step S5101). Then the join-prune-packet sorting unit 4400 e instructs the join-message creating unit 4700 e to transmit a join message to a router that is connected to a port that is set as a new sorting destination (Step S5102).

The join-message creating unit 4700 e creates a join message to be transmitted to a router that is designated by the join-prune-packet sorting unit 4400 e (Step S5201), and makes a request for a transfer of the join message to the packet transferring unit 4500 e (Step S5202).

As described above, according to the fifth embodiment, it is configured that a processing unit that detects a failure of a router is added, and when a failure is detected in a router, a path-sorting rule in which the router having the failure is a sorting destination is updated so that the sorting destination is changed to other router. Therefore, it is possible to let other router takes a transfer process when a failure occurs in a router, and as a result, a redundancy against the failure can be realized.

Furthermore, according to the fifth embodiment, a failure is detected by monitoring a hello message. However, the failure can also be detected by monitoring multicast data instead of the hello message. Furthermore, it is also possible to detect a failure by transmitting an echo-request message, such as a PING, to each of the routers periodically if there is no response to the echo-request message for a predetermined time.

According to the first to the fifth embodiments, it is assumed that all of the multicast data are treated evenly. However, when there is a limit in a bandwidth, it may be necessary to treat particular multicast data with priority. For this reason, a sixth embodiment of the present invention deals with a case in which a priority is given to the multicast data.

FIG. 23 is a functional block diagram of a load distributing apparatus according to the sixth embodiment. As shown in the figure, the load distributing apparatus 4000 f includes a network interface unit 4100 f, a packet identifying unit 4200 f, a hello-message discarding unit 4300 f, a join-prune-packet sorting unit 4400 f, a packet transferring unit 4500 f, and a prune-message creating unit 4800 f.

The network interface unit 4100 f is an interface unit for carrying out an exchange of packets via a network. The network interface unit 4100 f includes a plurality of ports for connecting to the routers and one or more ports for connecting to the LAN. The ports for connecting to the routers does not necessarily have to be a plurality of numbers physically, but can be divided into a plurality of ports virtually by a VLAN.

The packet identifying unit 4200 f identifies a type of the packet received by the network interface unit 4100 f, and delivers the packet to a corresponding processing unit based on the type of the packet identified. When the packet received is identified as a hello message, the packet is delivered to the hello-message discarding unit 4300 f, when the packet received is identified as a join message or a prune message, the packet is delivered to the join-prune-packet sorting unit 4400 f, and when the packet received is identified as other type of packet, the packet is delivered to the packet transferring unit 4500 f.

The hello-message discarding unit 4300 f is a processing unit that discards the hello message without transferring it. The join-prune-packet sorting unit 4400 f is a processing unit that determines a destination router to sort the join message and the prune message based on a predetermined rule.

When a join message for a new multicast address is received, the join-prune-packet sorting unit 4400 f selects, when the number of multicast addresses for which a transfer process is already carried out is over a predetermined number, and when a priority of the new multicast address is higher than that of existing multicast addresses, a multicast address of a lowest priority from among the multicast addresses for which the transfer process is carried out on the same path. Then, join-prune-packet sorting unit 4400 f instructs the prune-message creating unit 4800 f to transmit a prune message in which the multicast address selected is set. In this manner, when a load is over a predetermined level, it is possible to secure a bandwidth of multicast data having a high priority by stopping a transfer of multicast data having a low priority.

FIG. 24 is a table for illustrating an example of a path sorting rule for the join-prune-packet sorting unit 4400 f of the load distributing apparatus according to the sixth embodiment. As shown in the figure, a path-determining rule according to the present embodiment holds a pair of a multicast address and an output path for a packet corresponding to the multicast address, as well as a priority.

The prune-message creating unit 4800 f is a processing unit that creates a prune message to be transmitted to a router that is designated by the join-prune-packet sorting unit 4400 f, and makes a request for a transfer of the prune message to the packet transferring unit 4500 f. The packet transferring unit 4500 f transfers a packet delivered from the packet identifying unit 4200 f, the join-prune-packet sorting unit 4400 f, and the prune-message creating unit 4800 f, via the network interface unit 4100 f.

As described above, according to the sixth embodiment, it is configured that a transfer of multicast data having a low priority is stopped when a load is over a predetermined level. Therefore, it is possible to secure a bandwidth of multicast data having a high priority.

According to the present invention, it is configured that a join message and a prune message are sorted to a router from a terminal based on a path sorting rule. Therefore, it is possible to realize a load distribution for a transfer process without placing a burden on each of the routers. In addition, because there is no need for exchanging messages between the routers for the load distribution, a high-speed transfer start operation is also possible.

Furthermore, according to the present invention, it is configured that a hello messaged to be transferred from a router is discarded before other router receives the hello message. Therefore, it is possible, when a plurality of routers is connected to a LAN, to make all of the routers carry out a transfer of multicast data.

Moreover, according to the present invention, it is configured that the path sorting rule is dynamically registered by determining a load situation. Therefore, it is possible to equalize a load on each of the routers.

Furthermore, according to the present invention, when a failure is detected at a router, a sorting rule in which the router having the failure is allocated to a sorting destination is updated to have other router as the sorting destination. Therefore, when there is a failure at a router, it is possible to make a router carry out a transfer process.

Although the invention has been described with respect to a specific embodiment for a complete and clear disclosure, the appended claims are not to be thus limited but are to be construed as embodying all modifications and alternative constructions that may occur to one skilled in the art that fairly fall within the basic teaching herein set forth. 

1. A load distributing apparatus that is connected to a plurality of routers carrying out a transfer process of multicast data, the load distributing apparatus comprising: a network interface unit that receives a packet via a network; a packet identifying unit that identifies the packet received as a join message or a prune message; a path-sorting-rule storing unit that stores a path-sorting rule for sorting the packet to the routers; and a packet sorting unit that sorts the packet that is identified by the packet identifying unit to the routers based on the path-sorting rule stored in the path-sorting-rule storing unit.
 2. The load distributing apparatus according to claim 1, further comprising a hello-message discarding unit that discards the packet that is identified as a hello message by the packet identifying unit.
 3. The load distributing apparatus according to claim 1, wherein the packet sorting unit dynamically adds the path-sorting rule in such a manner that a load is distributed evenly on each of the routers.
 4. The load distributing apparatus according to claim 1, wherein the packet sorting unit carries out an operation of a multicast address included in the join message or the prune message, converts a result of the operation into a numerical value in a predetermined range, and acquires information on a sorting destination from the path-sorting rule based on the numerical value converted.
 5. The load distributing apparatus according to claim 1, wherein the join message or the prune message includes an internet-protocol address of a transmission source of the multicast data, and the packet sorting unit acquires information on a sorting destination from the path-sorting rule based on the internet-protocol address of the transmission source.
 6. The load distributing apparatus according to claim 1, further comprising a failure detecting unit that detects a failure of the routers, wherein when the failure detecting unit detects a failure of a router, the packet sorting unit updates the path-sorting rule in which the router having the failure is set as a sorting destination, to replace the router with other router.
 7. The load distributing apparatus according to claim 6, further comprising a join-message creating unit that creates, when the failure detecting unit detects the failure of the router, and when the packet sorting unit replaces the router with the other router, a join message to be transmitted to the other router that becomes a new sorting destination.
 8. The load distributing apparatus according to claim 6, wherein the failure detecting unit detects the failure of the router by monitoring a hello message transmitted from the router.
 9. The load distributing apparatus according to claim 6, wherein the failure detecting unit detects the failure of the router by monitoring multicast data transmitted from the router.
 10. The load distributing apparatus according to claim 6, wherein the failure detecting unit transmits a message requesting a response to the router, and when there is no response for a predetermined time, the failure detecting unit detects the failure of the router.
 11. The load distributing apparatus according to claim 1, further comprising a priority storing unit that stores a priority of a multicast address, wherein when a load on a router is over a predetermined threshold, the packet sorting unit instructs the router to stop a transfer of data corresponding to a multicast address having a lowest priority, based on the priority stored in the priority storing unit.
 12. A method of controlling a plurality of routers carrying out a transfer process of multicast data, the method comprising: receiving a packet via a network; identifying the packet received as a join message or a prune message; and sorting the packet that is identified by the packet identifying unit to the routers based on a path-sorting rule stored in a path-sorting-rule storing unit. 